xenmon: Fix security vulnerability CVE-2007-3919.
authorKeir Fraser <keir@xensource.com>
Tue, 23 Oct 2007 08:26:43 +0000 (09:26 +0100)
committerKeir Fraser <keir@xensource.com>
Tue, 23 Oct 2007 08:26:43 +0000 (09:26 +0100)
commit86d019205b87aa53a739d2c8a25de56335949091
tree917a489f5b650e3fdcacdb044f5aba236132dc6c
parent92c2f8054e9ef54fc218989c83c53591dc9dcbce
xenmon: Fix security vulnerability CVE-2007-3919.

The xenbaked daemon and xenmon utility communicate via a mmap'ed
shared file. Since this file is located in /tmp, unprivileged users
can cause arbitrary files to be truncated by creating a symlink from
the well-known /tmp filename to e.g., /etc/passwd.

The fix is to place the shared file in a directory to which only root
should have access (in this case /var/run/).

This bug was reported, and the fix suggested, by Steve Kemp
<skx@debian.org>. Thanks!

Signed-off-by: Keir Fraser <keir@xensource.com>
tools/xenmon/xenbaked.c
tools/xenmon/xenmon.py